<template>
  <div id="yingyuan">
    <div class="down">
      <ul>
        <li>全城<img src="./img/下拉.png" alt="" /></li>
        <span> | </span>
        <li>品牌<img src="./img/下拉.png" alt="" /></li>
        <span> | </span>
        <li>特色<img src="./img/下拉.png" alt="" /></li>
      </ul>
    </div>
    <div id="maoContent">
      <div v-for="i in yingyuan" class="box" :key="i.id">
        <div class="head">
          <span class="maoContent-box-head">{{ i.nm }}</span>
          <span class="yuan"><span>{{ i.price }}</span>元起</span>
        </div>
        <div class="adress">{{ i.addr }}</div>
        <div class="icon">
          <span
            v-for="item in i.labels"
            :style="{ border: `solid 1px ${item.color}`, color: item.color }"
            :key="item.name"
            >{{ item.name }}</span>
        </div>
      </div>
      <div class="kong"></div>
    </div>
  </div>
</template>

<script>
import axios from "axios";

export default {
  name: "yingyuan",
  data() {
    return {
      yingyuan: [11],
    };
  },
  mounted() {
    // /ajax/moreCinemas?movieId=0&day=2021-12-10&offset=0&limit=20&districtId=-1&lineId=-1&hallType=-1&brandId=-1&serviceId=-1&areaId=-1&stationId=-1&item=&updateShowDay=true&reqId=1639115046970&cityId=70&optimus_uuid=9D1E9E30533E11EC92A1852598A4297A0518CEABA2A94E6FBCDE10A42847D618&optimus_risk_level=71&optimus_code=10
    //  res.data.cinemas.cinemas
    axios.get("yingyuan.json").then((res) => {
      this.yingyuan = res.data.data.cinemas;
      console.log(this.yingyuan);
    });
  },
};
</script>
    
<style scoped>
#yingyuan .down {
  width: 100%;
  height: 1.2rem;
  background-color: white;
  position: fixed;
  top: 4.186667rem;
  left: 0;
  z-index: 10;
}

#yingyuan .down span{
  font-size: .453333rem;
  color: rgb(206, 201, 201);
}
#yingyuan .down ul {
  width: 8.88rem;
  height: 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-left: 0.64rem;
  border-bottom: solid .026667rem #e9e8e8;
}
#yingyuan .down ul li {
  color: #777777;
  font-size: 0.346667rem;
  position: relative;
}

#yingyuan .down ul li img {
  position: absolute;
  top:.106667rem;
  width: 0.333rem;
}

#yingyuan #maoContent {
  margin-top: 5.2rem;
  width: 100%;
}
#yingyuan #maoContent .kong {
  height: 1.53rem;
}
#yingyuan #maoContent .box {
  height: 2.4rem;
  border-bottom: solid 0.02rem rgb(235, 232, 232);
  margin-left: 0.3rem;
}

#yingyuan #maoContent .box .icon span {
  font-size: 0.266667rem;
  margin-right: 0.266667rem;
}

#yingyuan #maoContent .box {
  padding-top: .48rem;
  height: 2.933333rem;
}

#yingyuan #maoContent .box{
  font-size: .426667rem;
  font-family:  'Arial Narrow', Arial, sans-serif;
}

#yingyuan #maoContent .box .adress{
  padding-top: .12rem;
  font-size: .346667rem;
}
#yingyuan #maoContent .box .head .maoContent-box-head{
  font-size: .426667rem;
}
#yingyuan #maoContent .box .head .yuan {
  display: inline-block;
  height: .666667rem;
  font-size: .346667rem;
  color: red;
  margin-left: .08rem;
}
#yingyuan #maoContent .box .yuan span{
  font-size: .453333rem;
  color: red;
}
#yingyuan #maoContent .box .icon{
  margin-top: .16rem;
}

</style>